/*
 * DXObjectFactory.cpp
 *
 *  Created on: Oct 28, 2012
 *      Author: Bhupendra Aole
 */

#include "DXObjectFactory.h"
#include "Rectangle.h"
#include <iostream>

using namespace std;

namespace aole {

DXObject* DXObjectFactory::create( const char* type ) {
	if (!strcmp(type, "rectangle")) {
		return new Rectangle();
	}

	return 0;
}

} /* namespace aole */
